package com.fyl.pattern.command;

public class Client {
    public static void main(String[] args) {
        //顾客下单
        Order order1 = new Order();
        order1.setDiningTable(1);
        order1.setFood("西红柿鸡蛋面",1);
        order1.setFood("小杯可乐",2);

        //对顾客下的菜单整理-构建命令
        SeniorChef seniorChef = new SeniorChef();
        OrderCommand orderCommand = new OrderCommand(seniorChef, order1);

        //服务员向厨师发出命令
        Waiter waiter = new Waiter();
        waiter.addCommand(orderCommand);
        waiter.orderUp();
    }
}
